<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>产品编辑界面</title>
<s:include value="/WEB-INF/pages/common/reference.jsp" />
<bees:editor-import />
</head>
<body>
	<center>
		<div id="container">
			<form action="${fun:url('/backstage/furnish/product','edit','modify','') }">
				<s:hidden name="domain.id" value="%{#request.domain.id}" />
				<bees:editor style="width:100%;height:auto;"
					rows="[
						{name:'产品名称',height:'30px',editer:{
								type:'text',
								name:'domain.name',
								property:'name',
								placeholder:'请输入产品的名称',
								size:'30',
								validator:{rule:{required:true,maxlength:20},message:{required:'不能为空',maxlength:'长度不能大于20'}}
							}
						},
						{name:'所属类别',height:'30px',editer:{
								type:'select',
								name:'domain.kind.id',
								property:'kind.id',
								placeholder:'请选择所属类别',
								size:'30',
								url:'${fun:url('/backstage/furnish/kind','paging','','') }'
							}
						},
						{name:'成本价',height:'30px',editer:{
								type:'text',
								name:'domain.cost',
								property:'cost',
								placeholder:'请输入产品的成本价',
								size:'30',
								validator:{rule:{digits:true,maxlength:10},message:{digits:'请输入数字',maxlength:'长度不能大于10'}}
							}
						},
						{name:'市场价',height:'30px',editer:{
								type:'text',
								name:'domain.market',
								property:'market',
								placeholder:'请输入产品的市场价',
								size:'30',
								validator:{rule:{digits:true,maxlength:10},message:{digits:'请输入数字',maxlength:'长度不能大于10'}}
							}
						},
						{name:'售价',height:'30px',editer:{
								type:'text',
								name:'domain.price',
								property:'price',
								placeholder:'请输入产品的售价',
								size:'30',
								validator:{rule:{digits:true,maxlength:20},message:{digits:'请输入数字',maxlength:'长度不能大于20'}}
							}
						},
						{name:'产品型号',height:'30px',editer:{
								type:'text',
								name:'domain.model',
								property:'model',
								placeholder:'请输入产品的型号',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'图片',height:'30px',editer:{
								type:'select',
								name:'domain.picture',
								property:'picture',
								placeholder:'请选择产品的图片',
								size:'30',
								url:'${fun:url('/backstage/io/file','paging','','scope=ALL')}'
							}
						},
						{name:'尺寸',height:'30px',editer:{
								type:'text',
								name:'domain.magnitude',
								property:'magnitude',
								placeholder:'请输入产品的尺寸',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'颜色',height:'30px',editer:{
								type:'text',
								name:'domain.color',
								property:'color',
								placeholder:'请输入产品的颜色',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'重量',height:'30px',editer:{
								type:'text',
								name:'domain.weight',
								property:'weight',
								placeholder:'请输入产品的重量',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'材质',height:'30px',editer:{
								type:'text',
								name:'domain.material',
								property:'material',
								placeholder:'请输入产品的材质',
								size:'30',
								validator:{rule:{maxlength:20},message:{maxlength:'长度不能大于20'}}
							}
						},
						{name:'成色',height:'30px',editer:{
								type:'text',
								name:'domain.fineness',
								property:'fineness',
								placeholder:'请输入产品的成色',
								size:'30',
								validator:{rule:{digits:true,maxlength:3},message:{digits:'请输入数字',maxlength:'长度不能大于3'}}
							}
						},
						{name:'保质期',height:'30px',editer:{
								type:'text',
								name:'domain.shelf',
								property:'shelf',
								placeholder:'请输入产品的保质期',
								size:'30',
								validator:{rule:{digits:true,maxlength:3},message:{digits:'请输入数字',maxlength:'长度不能大于3'}}
							}
						},
						{name:'保修期',height:'30px',editer:{
								type:'text',
								name:'domain.warranty',
								property:'warranty',
								placeholder:'请输入产品的保修期',
								size:'30',
								validator:{rule:{digits:true,maxlength:3},message:{digits:'请输入数字',maxlength:'长度不能大于3'}}
							}
						},
						{name:'包换期',height:'30px',editer:{
								type:'text',
								name:'domain.replacement',
								property:'replacement',
								placeholder:'请输入产品的包换期',
								size:'30',
								validator:{rule:{digits:true,maxlength:3},message:{digits:'请输入数字',maxlength:'长度不能大于3'}}
							}
						},
						{name:'库存量',height:'30px',editer:{
								type:'text',
								name:'domain.remain',
								property:'remain',
								placeholder:'请输入产品的库存量',
								size:'30',
								validator:{rule:{digits:true,maxlength:3},message:{digits:'请输入数字',maxlength:'长度不能大于3'}}
							}
						},
						{name:'计量单位',height:'30px',editer:{
								type:'select',
								name:'domain.unit.id',
								property:'unit.id',
								placeholder:'请选择该产品的计量单位',
								size:'30',
								url:'${fun:url('/backstage/furnish/unit','paging','','') }'
							}
						},
						{name:'备注',height:'120px',editer:{
								type:'textarea',
								name:'domain.description',
								property:'description',
								style:'resize:none;',
								placeholder:'请输入备注',
								cols:'50',
								rows:'5'
							}
						},
						{name:'产品详细',height:'120px',editer:{
								type:'ckeditor',
								name:'domain.detail',
								property:'detail'
							}
						}
					]"
					domain="${domain }" />
			</form>
		</div>
	</center>
</body>
</html>